package com.xfcy.blog.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * (FeedBack)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@TableName("b_feed_back")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FeedBack implements Serializable {
    //ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //邮箱
    private String email;
    //标题
    private String title;
    //详细内容
    private String content;
    //图片地址
    private String imgUrl;
    //添加时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime createTime;
    //反馈类型 1:需求 2：缺陷
    private Integer type;

}

